package com.xmx.ordercenter.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 订单表
 *
 * @author fbb
 * @email boyinbing@126.com
 * @date 2021-08-11 01:30:41
 */
@Data
@TableName("oms_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Integer id;
	/**
	 * 用户表的用户ID
	 */
	@ApiModelProperty(value = "用户表的用户ID")
	private Integer userId;
	/**
	 * 订单编号
	 */
	@ApiModelProperty(value = "订单编号")
	private String orderSn;
	/**
	 * 订单状态
	 */
	@ApiModelProperty(value = "订单状态")
	private Integer orderStatus;
	/**
	 * 收货人名称
	 */
	@ApiModelProperty(value = "收货人名称")
	private String consignee;
	/**
	 * 收货人手机号
	 */
	@ApiModelProperty(value = "收货人手机号")
	private String mobile;
	/**
	 * 收货具体地址
	 */
	@ApiModelProperty(value = "收货具体地址")
	private String address;
	/**
	 * 用户订单留言
	 */
	@ApiModelProperty(value = "用户订单留言")
	private String message;
	/**
	 * 商品总费用
	 */
	@ApiModelProperty(value = "商品总费用")
	private BigDecimal goodsPrice;
	/**
	 * 配送费用
	 */
	@ApiModelProperty(value = "配送费用")
	private BigDecimal freightPrice;
	/**
	 * 优惠券减免
	 */
	@ApiModelProperty(value = "优惠券减免")
	private BigDecimal couponPrice;
	/**
	 * 用户积分减免
	 */
	@ApiModelProperty(value = "用户积分减免")
	private BigDecimal integralPrice;
	/**
	 * 团购优惠价减免
	 */
	@ApiModelProperty(value = "团购优惠价减免")
	private BigDecimal grouponPrice;
	/**
	 * 订单费用， = goods_price + freight_price - coupon_price
	 */
	@ApiModelProperty(value = "订单费用， = goods_price + freight_price - coupon_price")
	private BigDecimal orderPrice;
	/**
	 * 实付费用， = order_price - integral_price
	 */
	@ApiModelProperty(value = "实付费用， = order_price - integral_price")
	private BigDecimal actualPrice;
	/**
	 * 微信付款编号
	 */
	@ApiModelProperty(value = "微信付款编号")
	private String payId;
	/**
	 * 微信付款时间
	 */
	@ApiModelProperty(value = "微信付款时间")
	private LocalDateTime payTime;
	/**
	 * 发货编号
	 */
	@ApiModelProperty(value = "发货编号")
	private String shipSn;
	/**
	 * 发货快递公司
	 */
	@ApiModelProperty(value = "发货快递公司")
	private String shipChannel;
	/**
	 * 发货开始时间
	 */
	@ApiModelProperty(value = "发货开始时间")
	private LocalDateTime shipTime;
	/**
	 * 用户确认收货时间
	 */
	@ApiModelProperty(value = "用户确认收货时间")
	private LocalDateTime confirmTime;
	/**
	 * 待评价订单商品数量
	 */
	@ApiModelProperty(value = "待评价订单商品数量")
	private Integer comments;
	/**
	 * 订单关闭时间
	 */
	@ApiModelProperty(value = "订单关闭时间")
	private LocalDateTime endTime;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime addTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
	/**
	 * 逻辑删除
	 */
	@ApiModelProperty(value = "逻辑删除")
	@TableLogic
	private Integer deleted;
	/**
	 * 积分抵扣金额
	 */
	@ApiModelProperty(value = "积分抵扣金额")
	private BigDecimal integrationAmount;
	/**
	 * 可获得的积分
	 */
	@ApiModelProperty(value = "可获得的积分")
	private Integer integration;
	/**
	 * 成长值
	 */
	@ApiModelProperty(value = "成长值")
	private Integer growth;
	/**
	 * 下单是使用的积分
	 */
	@ApiModelProperty(value = "下单是使用的积分")
	private Integer useIntegration;

}
